#include<stdio.h>
int main()
{
	int a, b;
	scanf("%d %d", &a, &b);
	printf("4 1\n");
	printf("%c %c\n", a, b);
	return 0;
}